Solution Business Business

Ir Internet Business Solution Th News Media Media CS Pid {} Business Solution Export to CSV?

Ir Internet Business Solution Th News Media Media CS Pid {} Business Solution

日本 (日本語)
Australia (English)Brasil (Português)Česká republika (Čeština)Danmark (Dansk)Deutschland (Deutsch)España (Español)France (Français)Indonesia (Bahasa)Italia (Italiano)Magyarország (Magyar)România (Română)Singapore (English)Türkiye (Türkçe)United States (English)Россия (Русский)ישראל (עברית)المملكة العربية السعودية (العربية)대한민국 (한국어)香港特別行政區 (中文)台灣 (中文)中华人民共和国 (中文)
Resources for IT Professionals
 
ホームニュースライブラリラーニングダウンロードサポートセミナーフォーラムサイトマップ

Hello,

I have just started using PowerShell and I have tried to retrive information from Active Directory but not been able to export the information to a csv file.

I want the script to find all groups named "Finance" and then read the "Info" attribute on this groups and export to a CSV file.

This is the script:

function connect{}

$colResults = $objSearcher.FindAll()

foreach ($objResult in $colResults)
    {}
}
$csvfile="c:\finance.csv"
connect | export-csv $csvfile

When I open the csv file it only contains #TYPE system.int32

Thank you

Hakan